package com.sskj.wallet.bean;

import com.sskj.lib.util.TimeFormatUtil;

import java.util.Date;

public class RecordInfoBean {

    /**
     * txHash : 0x8083713b546eee33bd94db83e46e4cb70627cc1445e894c0fd0e540c8a387f19
     * isSuccess : Success
     * blockNumber : 7851890
     * confirmations : 47084 Block Confirmations
     * timestamp : May-29-2019 02:46:13 AM +UTC
     * from : 0xfa3c1ce19d234fad6ef56082e5995758120471e5
     * to : 0x48492d1de99cf5b11f5c11069ea66e75e4e5117a
     * value : 0.005 Ether
     * txFee : 0.00021 Ether
     * nonce : 1
     */

    private String txHash;
    private String isSuccess;
    private String blockNumber;
    private String confirmations;
    private String timestamp;
    private String from;
    private String to;
    private String value;
    private String txFee;
    private String nonce;
    private String gasUsed;
    private String gasPrice;
    private String memo;

    public String getMemo() {
        return memo;
    }

    public void setMemo(String memo) {
        this.memo = memo;
    }

    public String getGasUsed() {
        return gasUsed;
    }

    public void setGasUsed(String gasUsed) {
        this.gasUsed = gasUsed;
    }

    public String getGasPrice() {
        return gasPrice;
    }

    public void setGasPrice(String gasPrice) {
        this.gasPrice = gasPrice;
    }

    public String getTxHash() {
        return txHash;
    }

    public void setTxHash(String txHash) {
        this.txHash = txHash;
    }

    public String getIsSuccess() {
        return isSuccess;
    }

    public void setIsSuccess(String isSuccess) {
        this.isSuccess = isSuccess;
    }

    public String getBlockNumber() {
        return blockNumber;
    }

    public void setBlockNumber(String blockNumber) {
        this.blockNumber = blockNumber;
    }

    public String getConfirmations() {
        return confirmations;
    }

    public void setConfirmations(String confirmations) {
        this.confirmations = confirmations;
    }

    public String getTimestamp() {
        return TimeFormatUtil.SF_FORMAT_E.format(new Date(Long.valueOf(timestamp) * 1000));
    }

    public void setTimestamp(String timestamp) {
        this.timestamp = timestamp;
    }

    public String getFrom() {
        return from;
    }

    public void setFrom(String from) {
        this.from = from;
    }

    public String getTo() {
        return to;
    }

    public void setTo(String to) {
        this.to = to;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String getTxFee() {
        return txFee;
    }

    public void setTxFee(String txFee) {
        this.txFee = txFee;
    }

    public String getNonce() {
        return nonce;
    }

    public void setNonce(String nonce) {
        this.nonce = nonce;
    }
}
